package com.flyduck.vueshop.system.fallback;

import com.flyduck.vueshop.common.core.lang.Result;
import com.flyduck.vueshop.system.vo.RemoteUserRespVO;
import com.flyduck.vueshop.system.feign.RemoteSysUserFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * <p>
 * SysUserFallback
 * </p>
 *
 * @author flyduck
 * @since 2024-07-10
 */
@Slf4j
@Component
public class RemoteSysUserFallback implements RemoteSysUserFeignClient {
    @Override
    public Result<RemoteUserRespVO> getUserByUsername(String username) {
        log.error("获取用户信息失败");
        return Result.success(null);
    }

    @Override
    public Result<RemoteUserRespVO> getUserById(Long id) {
        log.error("获取用户信息失败");
        return Result.success(null);
    }
}
